/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.mer.entity;

import org.hibernate.validator.constraints.Length;

import com.kaaction.common.persistence.DataEntity;
import com.kaaction.modules.eb.entity.Customer;
import com.kaaction.modules.eb.entity.Order;

/**
 * OrderSkuEntity
 * @author zengbiao
 * @version 2017-05-22
 */
public class OrderSku extends DataEntity<OrderSku> {
	
	private static final long serialVersionUID = 1L;
	private MerOrder order;		// order_id
	private Sku sku;		// sku_id
	private Integer skuNum;		// sku_num
	private Double skuPerPrice;		// sku_per_price
	private Double skuTotalPrice;		// sku_total_price
	private String note;		// note
	private Customer customer;		// customer_id
	private String type;		// 10=未支付，20=购物车，30=待支付，50=已支付，90=申请退货，
	
	public OrderSku() {
		super();
	}

	public OrderSku(String id){
		super(id);
	}

	public Integer getSkuNum() {
		return skuNum;
	}

	public Sku getSku() {
		return sku;
	}

	public void setSku(Sku sku) {
		this.sku = sku;
	}

	public void setSkuNum(Integer skuNum) {
		this.skuNum = skuNum;
	}
	
	public Double getSkuPerPrice() {
		return skuPerPrice;
	}

	public void setSkuPerPrice(Double skuPerPrice) {
		this.skuPerPrice = skuPerPrice;
	}
	
	public Double getSkuTotalPrice() {
		return skuTotalPrice;
	}

	public void setSkuTotalPrice(Double skuTotalPrice) {
		this.skuTotalPrice = skuTotalPrice;
	}
	
	@Length(min=0, max=255, message="note长度必须介于 0 和 255 之间")
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
	@Length(min=0, max=3, message="type长度必须介于 0 和 3 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public MerOrder getOrder() {
		return order;
	}

	public void setOrder(MerOrder order) {
		this.order = order;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	
}